package com.snow.controller;

import com.snow.remote.RabbitmqRemote;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: 爱飘de小子
 * @CreateDate: 2018/8/17 23:42
 * @Version: 1.0
 */
@RestController
@RequestMapping("rabbitmq")
public class RabbitmqController {

    @Resource
    private RabbitmqRemote rabbitmqRemote;


    @RequestMapping("hello")
    public String register() {
        return rabbitmqRemote.sendMessage("你好,Rabbitmq");
    }


}
